with ta as (
select count(distinct isbn) as ect,memo_no,publisher
from book as b join borrowed as c
on b.isbn=c.is.bn
group by publisher,memo_no
)
select a.memo_no,a.name,publiser
from member as a join ta on a.memo_no=ta.memo_no
where ta.ect>5;
